<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>v-for 遍历指定的次数</title>
</head>
<body>
<div id="app">
    <!--不常用的一种写法，了解即可-->
    <ul>
        <li v-for="item of 9">{{ item }}</li>
    </ul>

    <hr>
    <ul>
        <li v-for="(item, index) of 9">{{ index }}.{{ item }}</li>
    </ul>

</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                return {}
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>